// var echart = echarts.init(document.getElementById("pie"));
var myChart = echarts.init(document.getElementById("pie1"));
var option = {
        title: {
          text: "饼图",
          subtext: "陈有根",
          left: "center",
          textStyle: {
            color: "red",
            fontStyle: "italic",
            fontSize: "18",
          },
        },
        series: [
          {
            type: "pie",
            data: [1, 2, 3],
          },
        ],
      };
     
myChart.setOption(option);